Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Functions / Working With Paper Types


GXGetPaperTypeDimensions

You can use the GXGetPaperTypeDimensions function to obtain the page rectangle and the paper rectangle associated with a paper-type object.

void GXGetPaperTypeDimensions (gxPaperType aPaperType,
                              gxRectangle *aPageSize,
                              gxRectangle *aPaperSize);
aPaperType

A reference to the paper-type object from which to obtain page and paper sizes.
aPageSize
A pointer to a rectangle that receives the page size of the paper type.
aPaperSize
A pointer to a rectangle that receives the paper size of the paper type.
DESCRIPTION
The GXGetPaperTypeDimensions function returns the page and paper size for the specified paper type in the geometry of rectangles. The page rectangle is the imageable portion of a page. The paper rectangle is the size of the paper. The geometry for each rectangle specifies the size in 72 dots-per-inch units. Passing a nil pointer for either the aPageSize or the aPaperSize parameters causes QuickDraw GX to ignore the parameter.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
gxPaperTypeNotFoundThe paper-type object cannot be located.
SEE ALSO
For an example that uses the GXGetPaperTypeDimensions function, see "Obtaining the Dimensions of a Paper Type" on page 4-33.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help